package com.design.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.design.blog.model.Article;
import com.design.blog.model.R;
import com.design.blog.model.Userinfo;
import com.design.blog.model.vo.*;

import java.util.List;

/**
 * @version 1.0
 * @author hxg
 * @date 2022-02-28
 * 服务类
 */
public interface IArticleService extends IService<Article> {

    List<Article> getArticles(PageParams params);

    List<Article> getHotArticles();

    List<Article> getNewArticles();

    ArticleVO getArticleById(Long id);

    String publishArticle(String token, ArticleParams articleParams);

    List<Article> getSearchArticle(String searchVal);

    Long likeArticle(String id);

    PageResult<Article> getAllUseArticle(PageNationParams params);

    int chgArticleCategory(String id, String type);
}
